import React from 'react'
import NormalLogin from './NormalLogin'
import MobileLogin from './MobileLogin'
import { Tabs } from 'antd'
import './index.css'

export default function Index() {
    const items = [
        {
            key: '1',
            label: '密码登录',
            children: <NormalLogin></NormalLogin>
        },
        {
            key: '2',
            label: '短信登录',
            children: <MobileLogin></MobileLogin>
        },
    ]
    const onChange = (key) => {
        console.log(key);
    }
    return (
        <div className='login'>
            <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
        </div>
    )
}
